#include <stdio.h>
#include <limits.h>

/*获取所有数据类型的所占字节数*/
int main()
{
    printf("char:%d\n",sizeof(char));
    printf("int:%d\n",sizeof(int));
    printf("short:%d\n",sizeof(short));
    printf("long:%d\n",sizeof(long));
    printf("long long:%d\n",sizeof(long long));
    printf("unsigned short:%d\n",sizeof(unsigned short));
    printf("unsigned char:%d\n",sizeof(unsigned char));
    printf("unsigned int:%d\n",sizeof(unsigned int));
    printf("unsigned long:%d\n",sizeof(unsigned long));
    
    return 0;
}




